﻿using de.wolfmarco.pas.Shared.Database;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace de.wolfmarco.pas.Shared.Helper
{
    public static class SettingsHelper
    {
        public static void ProtectSection(ConfigurationSection configurationSection)
        {
            if (!configurationSection.SectionInformation.IsProtected)
                configurationSection.SectionInformation.ProtectSection(null);
        }

        public static void UnprotectSection(ConfigurationSection configurationSection)
        {
            if (configurationSection.SectionInformation.IsProtected)
                configurationSection.SectionInformation.UnprotectSection();
        }
    }
}
